package com.example.base.room

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.example.base.entity.AgreeEntity


@Dao
interface VideoDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(agreeEntity: AgreeEntity):Long
    @Delete
    fun delete(agreeEntity: AgreeEntity):Int
    @Query("select * from agree where id = :id")
    fun queryById(id:Int):AgreeEntity
}